//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.lyq.bean;

public class Student {
    private String No;
    private String name;
    private String sex;
    private String age;
    private String collage;
    private String department;
    // 添加GPA属性
    private double gpa;
    private int majorId;
    private int yearId;
    private String campus;

    public String getCampus() {
        return campus;
    }
    public void setCampus(String campus) {
        this.campus = campus;
    }
    public String getNo() {
        return this.No;
    }

    public void setNo(String no) {
        this.No = no;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return this.age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getCollage() {
        return this.collage;
    }

    public void setCollage(String collage) {
        this.collage = collage;
    }

    public String getDepartment() {
        return this.department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
    
    // GPA属性的getter和setter方法
    public double getGpa() {
        return gpa;
    }
    
    public void setGpa(double gpa) {
        this.gpa = gpa;
    }

    public String toString() {
        return "Student [No=" + this.No + ", name=" + this.name + ", sex=" + this.sex + ", age=" + this.age + ", collage=" + this.collage + ", department=" + this.department +  ", gpa=" + this.gpa + "]";
    }

    public int getMajorId() {
        return majorId;
    }

    public void setMajorId(int majorId) {
        this.majorId = majorId;
    }

    public int getYearId() {
        return yearId;
    }

    public void setYearId(int yearId) {
        this.yearId = yearId;
    }
}